package com.asj.house.controller;

import com.asj.house.client.HouseVisitClient;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/house-visit")
@Api(value = "访问量统计")
@Slf4j
public class HouseVisitController {

    @Resource
    private HouseVisitClient houseVisitClient;

    @PostMapping("/access")
    @ApiOperation(value = "访问量数据接入")
    public void visitAccess() {
        houseVisitClient.visitAccess();
    }

}
